<%@ page pageEncoding="UTF-8" %>
<%@ include file="../common/IncludeTop.jsp"%>

<div id="Catalog">

<form action="editAccount" method="post">

    <h3>用户信息</h3>

    <table>
        <tbody>
        <tr>
            <td>用户ID：</td>
            <td><input name="username"
                       value="${sessionScope.loginAccount.username}" type="text" readonly="true"></td>
        </tr>
        <tr>
            <td>新密码：</td>
            <td>
                <input name="password" type="text">
             </td>
        </tr>
        <tr>
            <td>确认密码：</td>
            <td><input name="repeatedPassword" type="text"></td>
        </tr>
        </tbody>
    </table>
    <h3>账号信息</h3>

    <table>
        <tbody>
        <tr>
            <td>名：</td>
            <td><input name="firstName"
                       value="${sessionScope.loginAccount.firstName}" type="text"></td>
        </tr>
        <tr>
            <td>姓：</td>
            <td><input name="lastName"
                       value="${sessionScope.loginAccount.lastName}" type="text"></td>
        </tr>
        <tr>
            <td>邮箱：</td>
            <td><input name="email"
                       value="${sessionScope.loginAccount.email}" type="text" size="40"></td>
        </tr>
        <tr>
            <td>电话号码：</td>
            <td><input name="phone"
                       value="${sessionScope.loginAccount.phone}" type="text"></td>
        </tr>
        <tr>
            <td>地址一：</td>
            <td><input name="address1"
                       value="${sessionScope.loginAccount.address1}" type="text" size="40"></td>
        </tr>
        <tr>
            <td>地址二：</td>
            <td><input name="address2"
                       value="${sessionScope.loginAccount.address2}" type="text" size="40"></td>
        </tr>
        <tr>
            <td>城市：</td>
            <td><input name="city"
                       value="${sessionScope.loginAccount.city}" type="text"></td>
        </tr>
        <tr>
            <td>州：</td>
            <td><input name="state"
                       value="${sessionScope.loginAccount.state}" type="text"></td>
        </tr>
        <tr>
            <td>邮政编码：</td>
            <td><input name="zip"
                       value="${sessionScope.loginAccount.zip}" type="text"></td>
        </tr>
        <tr>
            <td>国家：</td>
            <td><input name="country"
                       value="${sessionScope.loginAccount.country}" type="text"></td>
        </tr>
        </tbody>
    </table>

    <h3>配置信息</h3>

    <table>
        <tbody>
        <tr>
            <td>语言偏好：</td>
            <td>

                <select name="languagePreference">
                <option selected="selected" value="${sessionScope.loginAccount.languagePreference}">√${sessionScope.loginAccount.languagePreference}</option>
                <option value="English">English</option>
                <option value="Chinese">Chinese</option>
                </select>

            </td>
        </tr>
        <tr>
            <td>类别偏好：</td>
            <td>

                <select name="favouriteCategoryId">
                <option selected="selected" value="${sessionScope.loginAccount.favouriteCategoryId}">√${sessionScope.loginAccount.favouriteCategoryId}</option>
                <option value="FISH">FISH</option>
                <option value="DOGS">DOGS</option>
                <option value="REPTILES">REPTILES</option>
                <option value="CATS">CATS</option>
                <option value="BIRDS">BIRDS</option>

                </select>
            </td>
        </tr>
        <tr>
            <td>启用MyList</td>
            <td><input name="listOption" value="true"
                       type="checkbox"></td>
        </tr>
        <tr>
            <td>启用MyBanner</td>
            <td><input name="bannerOption" value="true"
                       type="checkbox"></td>
        </tr>

        </tbody>
    </table>

    <font color="red">${requestScope.msg}</font><br>
    <input name="editAccount" value="保存信息" type="submit">

</form>

    <a href="viewMyOrder">我的订单</a>

</div>

</div>

<%@ include file="../common/IncludeBottom.jsp"%>
